package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.common.enums.AppHttpCodeEnum;
import com.heima.model.wemedia.dtos.SensitiveQueryDto;
import com.heima.model.wemedia.pojos.WmSensitive;
import com.heima.model.common.vos.PageResultVo;


public interface WmNewsSensitiveService extends IService<WmSensitive> {
    /**
     * 删除敏感词
     * @param id 敏感词ID
     */
    ResponseResult<String> delete(Integer id);

    /**
     * 查询敏感词
     *
     * @param dto 查询参数
     */
    ResponseResult<PageResultVo<WmSensitive>> querySensitive(SensitiveQueryDto dto);

    /**
     * 新增敏感词
     *
     * @param wmSensitive 敏感词
     */
    ResponseResult<AppHttpCodeEnum> insert(WmSensitive wmSensitive);

    /**
     * 修改敏感词
     *
     * @param wmSensitive 敏感词
     */
    ResponseResult<AppHttpCodeEnum> modify(WmSensitive wmSensitive);
}
